var express = require('express');
var router = express.Router();

const AdminController = require('../controller/admin');


//分页获取用户
router.get('/userPage',AdminController.userPage)
//分页获取动态
router.get('/sharePage',AdminController.sharePage)
//分页获取评论
router.get('/remarkPage',AdminController.remarkPage)
//冻结用户
router.post('/frozenUser',AdminController.frozenUser)
//解冻用户
router.post('/frozenUserOut',AdminController.frozenUserOut)
//删除动态
router.post('/deleteShare',AdminController.deleteShare)
//删除评论
router.post('/deleteRemark',AdminController.deleteRemark)
module.exports = router;